package ru.niir.goodfil.excel.impl;

import ru.niir.goodfil.excel.client.ColumnModel;
import ru.niir.goodfil.excel.client.SheetModel;

import java.util.Collection;

/**
 * @author: Кирилл
 */
public class DefaultSheetModel implements SheetModel {
    private final String title;
    private final ColumnModel[] columns;

    public DefaultSheetModel(String title, Collection<ColumnModel> columns) {
        this.title = title;
        this.columns = new ColumnModel[columns.size()];
        columns.toArray(this.columns);
    }

    public String getTitle() {
        return title;
    }

    public ColumnModel[] getColumns() {
        return columns;
    }
}
